package cn.kai.process.chain;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 抽象责任链父类
 * Author: cKnight
 * Date: 2024/6/23
 */
@AllArgsConstructor
@NoArgsConstructor
public abstract class AbstractChain<E> implements Chain<E> {
    private List<E> elements;


    protected void setElement(List<E> list){
        this.elements = list;
    }

    protected List<E> getElements(){
        return this.elements;
    }
}
